<include file="Index/header" />
<body class="body_img">
<include file="Index/picture" />
	<div align="center" class="invited">
    	<img src="__PUBLIC__/Home/images/head1.png"/>
        <p class="head">{$inviation_info.community_name}</p>
        <ul>
        	<p>我是{$inviation_info.school_name}{$inviation_info.user_name},已加入{$inviation_info.community_name}，邀请你也加入。</p>
            <button type="button" onclick="joinNow();return false;">我要加入</button>
        </ul>
        <p class="text">逾10万MBA/EMBA校友共同的选择</p>
        <p>36个E-MBA云区域社群</p>
        <p>总有一个适合你^-^</p>
        <a href="#" onclick="hrefList();return false;"><p align="center" class="groups">查看其他区域社群>></p></a>
    </div>
    <include file="Index/down" />
</body>
</html>
<script>
	function joinNow(){
		var community_id = '{$Think.get.community_id}';
		var invite_id = '{$Think.get.invite_id}';
		var host = 'http://'+window.location.host;
		var user_id = "{$Think.session.user_id}";
		if(user_id == '' || user_id == null || user_id == undefined){
			window.location.href= host+"/Index/reg?community_id="+community_id+"&invite_id="+invite_id;
		}else{
			window.location.href= host+"/Index/myInvitation?community_id="+community_id+"&invite_id="+user_id;
		}
	}
	function hrefList(){
		var host = 'http://'+window.location.host;
		window.location.href= host+"/Index/communityList";
	}
</script>